{temp('html/recruit/pc/head')}
<script>
function gbdz(id,nn,cc){//改变地址
	$.post('{$_url}/?act=get_diqu',{id:id},function(data){
		$("#"+nn).html(data);
		if(cc != ''){
			$("#"+cc).html('<option value="0">请选择</option>');
		}
	});
}
function gbzy(id){//改变专业
	if(id == '576'){
		document.getElementById('zytx').style.display = 'block';
		document.getElementById('tzhuanye').style.display = 'none';
	}else{
		document.getElementById('zytx').style.display = 'none';
		document.getElementById('tzhuanye').style.display = 'block';
		$.post('{$_url}/?act=get_zhuanye',{id:id},function(data){
			$("#ejzhuanye").html(data);
		});
	}
}
function tijiao(){
	var name = $("#name").val();
	var sex = $('input:radio[name=sex]:checked').val();
	var cstime = $("#cstime").val();
	var xsheng = $("#xsheng").val();
	var xshi = $("#xshi").val();
	var xqu = $("#xqu").val();
	var xsq = $("#xsq").val();
	var bytime = $("#bytime").val();
	var minzu = $("#minzu").val();
	var hksheng = $("#hksheng").val();
	var hkshi = $("#hkshi").val();
	var hkqu = $("#hkqu").val();
	var hk = $("#hk").val();
	var sfzh = $("#sfzh").val();
	var hyzt = $('input:radio[name=hyzt]:checked').val();
	var byyx = $("#byyx").val();
	var xueli = $("#xueli").val();
	var zhuanye = $("#zhuanye").val();
	if(zhuanye == '576'){
		var zytx = $("#zytx").val();
	}else{
		var zytx = $("#ejzhuanye").val();
	}
	var waiyu = $("#waiyu").val();
	var wyjb = $("#wyjb").val();
	var zzmm = $("#zzmm").val();
	var qq = $("#qq").val();
	var grzy = $("#grzy").val();
	$.post('{$_url}/?act=ruser&met=xgzl_yz',{name:name,sex:sex,cstime:cstime,
		xsheng:xsheng,xshi:xshi,xqu:xqu,xsq:xsq,bytime:bytime,minzu:minzu,hksheng:hksheng,
		hkshi:hkshi,hkqu:hkqu,hk:hk,sfzh:sfzh,hyzt:hyzt,byyx:byyx,xueli:xueli,zhuanye:zhuanye,
		waiyu:waiyu,wyjb:wyjb,zzmm:zzmm,qq:qq,grzy:grzy,qtzhuanye:zytx},function(data){
		if(data == '修改成功'){
			location.href='{$_url}/?act=ruser&met=xgzl';
		}else{
			alert(data);
		}
	});
}
</script>
</head>
<body>
	{temp('html/recruit/pc/ruser/toubu')}

		{temp('html/recruit/pc/ruser/left')}
				<!--右侧-->
				<div class="w_804 l_m5 f_r bc_FFF bor_C6">
					<!--标题-->
					<div class="t_m15 l_m20 t_l">
						<span class="f_s20 c_323131">完善资料</span>
						<span class="c_7D7D7D">(请认真填写个人资料，保证信息的准确和完整)</span>
					</div>
					<!--标题结束-->
					<!--分割线-->
					<div class="bor_C6 bor_di_none t_m10"></div>
					<!--分割线结束-->
					<!--基本信息-->
					<div class="w_bai t_m25">
						<!--图标及提示字-->
						<div class="w_bai dis_inline">
							<div class="geren f_l t_m3 l_m20"></div>
							<div class="f_l l_m5 f_s18 c_323131">基本信息（*为必填项）</div>
						</div>
						<!--图标及提示字结束-->
						<!--内容-->
						<div class="t_m15 l_m40 dis_inline">
							<!--姓名-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m52" style="_margin-left:39px">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">姓名</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="name" value="{if(@$rs['name'])}{$rs['name']}{/if}" placeholder="如：张三" />
								</div>
							</div>
							<!--姓名结束-->
							<!--性别-->
							<div class="w_bai t_m5 dis_inline">
								<div class="f_l t_m8 l_m52" style="_margin-left:39px">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">性别</span>
								</div>
								<div class="f_l t_m8 c_656565" style="margin-left:10px!important;margin-left:15px">
									<input type="radio" name="sex" value="1" {if(@$rs['sex'] == 1)}checked="checked"{/if} />男
									<input type="radio" name="sex" value="2" {if(@$rs['sex'] == 2)}checked="checked"{/if} class="l_m20" />女
									<input type="radio" name="sex" value="0" {if(@$rs['sex'] == 0)}checked="checked"{/if} class="l_m20" />保密
								</div>
							</div>
							<!--性别结束-->
							<!--民族-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m52" style="_margin-left:39px">
									<span class="f_l c_FF4700" style="margin-right:12px;"></span>
									<span class="c_656565">民族</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="minzu" value="{if(@$rs['minzu'])}{$rs['minzu']}{/if}" placeholder="如：汉" />
								</div>
							</div>
							<!--民族结束-->
							<!--出生日期-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">出生日期</span>
								</div>
								<div class="f_l l_m10">
									<input class="Wdate" type="text" id="cstime" value="{if(@$rs['cstime'])}{code(echo date('Y-m-d',$rs['cstime']))}{/if}"
                            		onfocus="WdatePicker({firstDayOfWeek:0,isShowClear:false,isShowOK:false,isShowToday:false})"/>
								</div>
							</div>
							<!--出生日期结束-->
							<!--现居住地-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">现所在地</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh95 f_l">
										<div class="select-inner">
											<select id="xsheng" onChange="gbdz(this.value,'xshi','xqu')" class="select-h">
												<option value="0">请选择</option>
							        			{if(@$sh)}
							        			{foreach($sh as $k=>$v)}
							        			<option {if(@$rs['xsheng'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
							        			{/foreach}
							        			{/if}
											</select>
										</div>
									</div>
									<div class="select-outer select-wh95 f_l l_m5">
										<div class="select-inner">
											<select id="xshi" onChange="gbdz(this.value,'xqu','')" class="select-h">
							        			<option value="0">请选择</option>
							        			{if(@$shi)}
							        			{foreach($shi as $k=>$v)}
							        			<option {if(@$rs['xshi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
					        		<div class="select-outer select-wh95 f_l l_m5">
										<div class="select-inner">
											<select id="xqu" class="select-h">
							        			<option value="0">请选择</option>
							        			{if(@$qu)}
							        			{foreach($qu as $k=>$v)}
							        			<option {if(@$rs['xqu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
									<input type="text" class="inp_msg f_l l_m5" id="xsq" value="{if(@$rs['xsq'])}{$rs['xsq']}{/if}" placeholder="详细地址" />
								</div>
							</div>
							<!--现居住地结束-->
							<!--户籍地址-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">户籍地址</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh95 f_l">
										<div class="select-inner">
											<select id="hksheng" onChange="gbdz(this.value,'hkshi','hkqu')" class="select-h">
							        			<option value="0">请选择</option>
							        			{if(@$sh)}
							        			{foreach($sh as $k=>$v)}
							        			<option {if(@$rs['hksheng'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
							        	</div>
							        </div>
							        <div class="select-outer select-wh95 f_l l_m5">
										<div class="select-inner">
											<select id="hkshi" onChange="gbdz(this.value,'hkqu','')" class="select-h">
							        			<option value="0">请选择</option>
							        			{if(@$hkshi)}
							        			{foreach($hkshi as $k=>$v)}
							        			<option {if(@$rs['hkshi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
									<div class="select-outer select-wh95 f_l l_m5">
										<div class="select-inner">
											<select id="hkqu" class="select-h">
							        			<option value="0">请选择</option>
							        			{if(@$hkqu)}
							        			{foreach($hkqu as $k=>$v)}
							        			<option {if(@$rs['hkqu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
									<input type="text" class="inp_msg f_l l_m5" id="hk" value="{if(@$rs['hk'])}{$rs['hk']}{/if}" placeholder="详细地址" />
								</div>
							</div>
							<!--户籍地址结束-->
							<!--身份证号-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">身份证号</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="sfzh" value="{if(@$rs['sfzh'])}{$rs['sfzh']}{/if}" />
								</div>
							</div>
							<!--身份证号结束-->
							<!--婚姻状态-->
							<div class="w_bai t_m5 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:12px;"></span>
									<span class="c_656565">婚姻状态</span>
								</div>
								<div class="f_l t_m8 c_656565" style="margin-left:10px!important;margin-left:15px">
									<input type="radio" name="hyzt" value="0" {if(@$rs['hyzt'] == 0)}checked="checked"{/if} />未婚
									<input type="radio" name="hyzt" value="1" {if(@$rs['hyzt'] == 1)}checked="checked"{/if} class="l_m20" />已婚
								</div>
							</div>
							<!--婚姻状态结束-->
							<!--毕业时间-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:12px;"></span>
									<span class="c_656565">毕业时间</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="Wdate" id="bytime" value="{if(@$rs['bytime'])}{code(echo date('Y-m-d',$rs['bytime']))}{/if}"
									onfocus="WdatePicker({firstDayOfWeek:0,isShowClear:false,isShowOK:false,isShowToday:false})" />
								</div>
							</div>
							<!--毕业时间结束-->
							<!--毕业院校-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:12px;"></span>
									<span class="c_656565">毕业院校</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="byyx" value="{if(@$rs['byyx'])}{$rs['byyx']}{/if}" />
								</div>
							</div>
							<!--毕业院校结束-->
							<!--学历-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m52" style="_margin-left:39px">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">学历</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh200 f_l">
										<div class="select-inner">
											<select id="xueli" class="select-h">
							        			{if(@$_xueli)}
							        			{foreach($_xueli as $k=>$v)}
							        			<option {if(@$rs['xueli'] == $k)}selected="selected"{/if} value="{$k}">{$v}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
								</div>
							</div>
							<!--学历结束-->
							<!--主修专业-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">主修专业</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh200 f_l">
										<div class="select-inner">
											<select id="zhuanye" class="select-h" onChange="gbzy(this.value)">
							        			<option value="0">请选择</option>
							        			{if(@$zhuany)}
							        			{foreach($zhuany as $k=>$v)}
							        			<option {if(@$rs['zhuanye'] == $v['id'])}selected="selected"{/if} value="{$v['id']}">{$v['name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
								</div>
								
								<div class="f_l" style="margin-left:10px!important;margin-left:20px;display:{if($rs['zhuanye'] == 576)}none{else}block{/if};" id="tzhuanye">
									<div class="select-outer select-wh200 f_l">
										<div class="select-inner">
											<select id="ejzhuanye" class="select-h">
							        			<option value="0">请选择</option>
							        			{if(@$zhuanye)}
							        			{foreach($zhuanye as $k=>$v)}
							        			<option {if(@$rs['qtzhuanye'] == $v['id'])}selected="selected"{/if} value="{$v['id']}">{$v['name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
								</div>
								
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="zytx" value="{if($rs['zhuanye'] == 576)}{$rs['qtzhuanye']}{/if}" style="display:{if($rs['zhuanye'] == 576)}block{else}none{/if};" />
								</div>
							</div>
							<!--主修专业结束-->
							<!--外语语种-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:12px;"></span>
									<span class="c_656565">外语语种</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh200 f_l">
										<div class="select-inner">
											<select id="waiyu" class="select-h">
							        			{if(@$_waiyu)}
							        			{foreach($_waiyu as $k=>$v)}
							        			<option {if(@$rs['waiyu'] == $k)}selected="selected"{/if} value="{$k}">{$v}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
								</div>
								
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh200 f_l">
										<div class="select-inner">
											<select id="wyjb" class="select-h">
							        			{if(@$_wyjb)}
							        			{foreach($_wyjb as $k=>$v)}
							        			<option {if(@$rs['wyjb'] == $k)}selected="selected"{/if} value="{$k}">{$v}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
										</div>
									</div>
								</div>
							</div>
							<!--外语语种结束-->
							<!--政治面貌-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:12px;"></span>
									<span class="c_656565">政治面貌</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="zzmm" value="{if(@$rs['zzmm'])}{$rs['zzmm']}{/if}" />
								</div>
							</div>
							<!--政治面貌结束-->
							<!--QQ-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m55" style="_margin-left:40px">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">&nbsp;QQ</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="qq" value="{if(@$rs['qq'])}{$rs['qq']}{/if}" />
								</div>
							</div>
							<!--QQ结束-->
							<!--个人主页-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:12px;"></span>
									<span class="c_656565">个人主页</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="grzy" value="{if(@$rs['grzy'])}{$rs['grzy']}{/if}" />
								</div>
							</div>
							<!--个人主页结束-->
							<!--确认按钮-->
							<div class="w_bai t_m40 b_m50 dis_inline t_l">
								<div class="f_l w_88">&nbsp;</div>
								<div class="f_l w_200 h_35 l_h35 bc_E16400 c_FFF t_c point"
									style="margin-left:3px!important;margin-left:13px;_margin-left:38px" onClick="tijiao()">
									保存个人信息
								</div>
							</div>
							<!--确认按钮结束-->
						</div>
						<!--内容结束-->
					</div>
					<!--基本信息结束-->
				</div>
				<!--右侧结束-->
			</div>
			<!--详细结束-->
		</div>
		<!--主体内容结束-->
{temp('html/recruit/pc/foot')}